﻿using System.Reflection.Emit;
using Sigil.Impl;

namespace Sigil
{
	public partial class Emit<DelegateType>
	{
		/// <summary>
		/// Emits a break instruction for use with a debugger.
		/// </summary>
		public Emit<DelegateType> Break()
		{
			UpdateState(OpCodes.Break, Wrap(StackTransition.None(), "Break"));

			return this;
		}
	}
}